package com.example.asus.homework11.retrofitservice;

import com.example.asus.homework11.bean.Dish;

import java.util.List;

import javax.xml.transform.Result;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by 彭立翔 on 2018/9/29.
 * Coder Level:MAX.
 */

public interface RetrofitService {
    @GET("dishes")
    Call<List<Dish>> getDishes();
    Call<Result>
    getDish(@Query("id") String id);
    @GET("dish/{id}") Call<Result> getDishByPathParam(@Path("id") String id);
}
